package com.ctshk.rpc.user.entity.es;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * <p>
 *  巴士订单
 * </p>
 *
 * @author 李新科
 * @date 2021/5/27 20:39
 */
@Data
@ApiModel(value="巴士订单ES缓存实体")
@Accessors(chain = true)
public class BusOrderEs implements Serializable {

    @ApiModelProperty(value = "巴士票-出发日期时间")
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "uuuu-MM-dd HH:mm:ss")
    private LocalDateTime effectiveTime;

    @ApiModelProperty(value = "预计耗时-单位小时")
    private Integer estimatedTime;

    @ApiModelProperty(value = "巴士票-出发城市名称")
    private String departureCityName;

    @ApiModelProperty(value = "巴士票-到达城市名称")
    private String arriveCityName;

    @ApiModelProperty(value = "巴士票-上车站名称")
    private String boardingStationName;

    @ApiModelProperty(value = "巴士票-下车站点名称")
    private String alightingStationName;
}
